.class final Lcom/wqmobile/sdk/protocol/s;
.super Landroid/os/Handler;


# instance fields
.field private synthetic a:Lcom/wqmobile/sdk/protocol/r;


# direct methods
.method constructor <init>(Lcom/wqmobile/sdk/protocol/r;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public final handleMessage(Landroid/os/Message;)V
    .locals 5

    :try_start_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, [B

    if-eqz v0, :cond_0

    array-length v1, v0

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v1, v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;[B)Z

    :cond_0
    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->c:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-ne v0, v1, :cond_2

    :cond_1
    :goto_0
    return-void

    :cond_2
    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->b:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-ne v0, v1, :cond_3

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;Landroid/os/Message;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->f(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/os/Message;->copyFrom(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a;->b()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    new-instance v1, Ljava/util/Timer;

    invoke-direct {v1}, Ljava/util/Timer;-><init>()V

    iput-object v1, v0, Lcom/wqmobile/sdk/protocol/a;->c:Ljava/util/Timer;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    iget v1, v0, Lcom/wqmobile/sdk/protocol/a;->d:I

    add-int/lit8 v1, v1, 0x1

    iput v1, v0, Lcom/wqmobile/sdk/protocol/a;->d:I

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->h(Lcom/wqmobile/sdk/protocol/r;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;I)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    new-instance v1, Lcom/wqmobile/sdk/protocol/v;

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-direct {v1, v2}, Lcom/wqmobile/sdk/protocol/v;-><init>(Lcom/wqmobile/sdk/protocol/r;)V

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;Ljava/util/TimerTask;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/a;->c:Ljava/util/Timer;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/r;->i(Lcom/wqmobile/sdk/protocol/r;)Ljava/util/TimerTask;

    move-result-object v1

    const-wide/16 v2, 0xbb8

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v0

    iget v1, p1, Landroid/os/Message;->what:I

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a;->j()V

    goto/16 :goto_0

    :cond_3
    :try_start_1
    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->a:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-ne v0, v1, :cond_5

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;Landroid/os/Message;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->f(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/os/Message;->copyFrom(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a;->b()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    new-instance v1, Ljava/util/Timer;

    invoke-direct {v1}, Ljava/util/Timer;-><init>()V

    iput-object v1, v0, Lcom/wqmobile/sdk/protocol/a;->c:Ljava/util/Timer;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    iget v1, v0, Lcom/wqmobile/sdk/protocol/a;->d:I

    add-int/lit8 v1, v1, 0x1

    iput v1, v0, Lcom/wqmobile/sdk/protocol/a;->d:I

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    new-instance v1, Lcom/wqmobile/sdk/protocol/v;

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-direct {v1, v2}, Lcom/wqmobile/sdk/protocol/v;-><init>(Lcom/wqmobile/sdk/protocol/r;)V

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;Ljava/util/TimerTask;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;

    move-result-object v0

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/a;->c:Ljava/util/Timer;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/r;->i(Lcom/wqmobile/sdk/protocol/r;)Ljava/util/TimerTask;

    move-result-object v1

    const-wide/16 v2, 0xbb8

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    sget-object v0, Lcom/wqmobile/sdk/protocol/a;->a:[B

    monitor-enter v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :try_start_2
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    iget-object v1, v1, Lcom/wqmobile/sdk/protocol/r;->b:[B

    monitor-enter v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :try_start_3
    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v2}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v2

    iget v3, p1, Landroid/os/Message;->what:I

    iput v3, v2, Landroid/os/Message;->what:I

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v3}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    iget-object v2, v2, Lcom/wqmobile/sdk/protocol/r;->b:[B

    const-wide/16 v3, 0xb54

    invoke-virtual {v2, v3, v4}, Ljava/lang/Object;->wait(J)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1
    .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_1

    :goto_1
    :try_start_4
    monitor-exit v1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :try_start_5
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    iget-object v1, v1, Lcom/wqmobile/sdk/protocol/r;->a:[B

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/cmd/b;->e([B)Z

    move-result v1

    if-nez v1, :cond_4

    sget-object v1, Lcom/wqmobile/sdk/protocol/a;->a:[B

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    :cond_4
    monitor-exit v0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    goto/16 :goto_0

    :catchall_0
    move-exception v1

    :try_start_6
    monitor-exit v0

    throw v1
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    :catch_1
    move-exception v2

    :try_start_7
    invoke-static {v2}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(Ljava/lang/Exception;)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    goto :goto_1

    :catchall_1
    move-exception v2

    :try_start_8
    monitor-exit v1

    throw v2
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    :cond_5
    :try_start_9
    iget v0, p1, Landroid/os/Message;->what:I

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/e;->d:Lcom/wqmobile/sdk/protocol/cmd/e;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/e;->a()I

    move-result v1

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->h(Lcom/wqmobile/sdk/protocol/r;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/r;->a(Lcom/wqmobile/sdk/protocol/r;I)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v0

    iget v1, p1, Landroid/os/Message;->what:I

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/s;->a:Lcom/wqmobile/sdk/protocol/r;

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/r;->g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_0

    goto/16 :goto_0
.end method
